name_filter :local_fresh_only do |names, configurations, options|
  local_area = ::Wondercap::Deployment::Area.find_by_name("local")
  next names unless local_area && local_area.current_snapshot

  names.delete_if do |name|
    next false if options[:force_deploy] && options[:supplied_names].include?(name)
    next false if configurations[name].nil?

    local_dep = local_area.current_snapshot.find_deployment_by_name(name)
    local_dep != nil && local_dep.revision == configurations[name].real_revision
  end
end
